package com.group2.bankonline.utils;

import lombok.Data;


@Data
public class JsonResult {
    private String msg;
    private Boolean result;
    private Object data;


    public JsonResult(Boolean result, Object data, String msg) {
        this.result = result;
        this.data = data;
        this.msg = msg;
    }

    public JsonResult(Boolean result, String msg) {
        this.msg = msg;
        this.result = result;
    }

    public JsonResult(Boolean result, Object data) {
        this.result = result;
        this.data = data;
    }
}
